package com.mzj.saas.mservice.bill.repository;

import com.mzj.saas.mservice.bill.entity.HouseExpenseBillRule;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.transaction.annotation.Transactional;

public interface HouseExpenseBillRuleRepository extends PagingAndSortingRepository<HouseExpenseBillRule, Long>, JpaSpecificationExecutor<HouseExpenseBillRule>, JpaRepository<HouseExpenseBillRule,Long> {
    @Query("from HouseExpenseBillRule where id=:Id ")
    HouseExpenseBillRule findById(@Param("Id") String Id);

    @Transactional
    void deleteById(String id);

}
